Page({
  data:{
    list:[
      {name:'C',active:true,src:'/pages/work4p/images/c.png'},
      {name:'D',active:true,src:'/pages/work4p/images/d.png'},
      {name:'E',active:true,src:'/pages/work4p/images/e.png'},
      {name:'F',active:true,src:'/pages/work4p/images/f.png'},
      {name:'G',active:true,src:'/pages/work4p/images/g.png'},
      {name:'A',active:true,src:'/pages/work4p/images/a.png'},
      {name:'B',active:true,src:'/pages/work4p/images/b.png'},
    ],
    src:'/pages/work4p/images/c.png'
  },
  c(e){
    console.log(e)
    const id = e.currentTarget.dataset.id
    this.data.list.forEach(v=>{
      v.active = false
    })
    this.data.list[id].active = true
    this.setData({
      src:this.data.list[id].src,
      list:this.data.list
    })
  }
})